how to fix fatal error jvmti.h No such file or directory compilation terminated on c code ubuntu? [on hold]

Posted by Blue Rose on Programmers See other posts from Programmers or by Blue Rose
Published on 2013-10-25T10:27:40Z Indexed on 2013/10/25 16:10 UTC
Read the original article Hit count: 249

Filed under:
|
|
|

how to fix fatal error jvmti.h No such file or directory compilation terminated c code ubuntu? my c code is:

#include "jvmti.h"


 JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *jvm, char *options, void *reserved)
 {


 /* We return JNI_OK to signify success */
  printf("\nBushra Za'areer,\n\n");                  


 return JNI_OK;


 }

JNIEXPORT void JNICALL
Agent_OnUnload(JavaVM *vm)
{
}

type this command in terminal: gcc -Wall -W -Werror first_agent.c -o firstagent

first_agent.c:1:19: fatal error: jvmti.h: No such file or directory compilation terminated.


where java jdk version

javac 1.7.0_25

where gcc version gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-2ubuntu4)

here should update gcc version to 4.8?

© Programmers or respective owner

Related posts about java

Related posts about c